﻿using Point2d.Graphics;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Point2d.App
{
    public class Wheel : LinesEntity
    {
        public enum Type
        {
            eUnknown = 0,
            eHeadLeft,
            eHeadRight,
            eBackLeft,
            eBackRight
        }

        public Wheel(GraphicsManager manager, Color color, Vehicle vehicle)
            : base(manager, color)
        {
            _vehicle = vehicle;
        }

        public void Create(Type type, float pos, float posLat)
        {
            _type = type;
            _status._pos = pos;
            _status._angle = 0;
            _status._posLat = posLat;
        }

        public Vehicle _vehicle = null;
        public Status _status = new Status();
        public Type _type = Type.eUnknown;
        public float _length = 0;
        public float _width = 0;
    }
}
